﻿@model  WebApplication.Models.IndexModel
@using System.Text;
@{
    Layout = null;
    var time = DateTime.Now;
 }

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div> 
        <form action="/Test/Index" method="post">
            Num1:<input type="text" name="Num1" value="@Model.Num1" />
            Num2:<input type="text" name="Num2" value="@Model.Num2" />
                 <input type="submit"  value="确定" /> <br />
            <span>@Model.Result</span>
            <br />  
            <span>@time</span>
            <span>@time.Ticks</span>
            <span>@time.DayOfWeek</span>
            <br />
            @{  
                DirectoryInfo directory = new DirectoryInfo(@"S:\gif图库\欧美gif");
                var files= directory.GetFiles();
               
                List<string> list1 = new List<string>();
                for (int i = 0; i < 1000; i++)
                {
                    list1.Add(files[i].FullName);
                }


                }
            @foreach (var item in list1 )

            { 
                
                <img  src="@item"/>
            }
        </form>
    </div>
</body>
</html>
